import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const customerApi = {
    // 添加 @author mrmf
    addCustomer: (data) => {
        return postAxios('/customer/add', data);
    },
    // 分页查询 @author mrmf
    queryCustomer: (data) => {
        return postAxios('/customer/page/query', data);
    },
    // 批量删除 @author mrmf
    batchDeleteCustomer: (idList) => {
        return postAxios('/customer/deleteByIds', idList);
    },
    // 修改  @author mrmf
    updateCustomer: (data) => {
        return postAxios('/customer/update', data);
    },
    // 导出全部  @author mrmf
    exportAll:(data)=>{
        return postDownloadAxios('/customer/export/all',data);
    },
    // 批量导出  @author mrmf
    batchExport: (idList) => {
        return postDownloadAxios('/customer/export/batch', idList);
    },
};
